home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr49 / strpp300.zip / FILESTR.H < prev    next >
C/C++ Source or Header  |  1993-04-11  |  1KB  |  42 lines

  1. /* -------------------------------------------------------------------- */
  2. /* String++ Version 3.00                                       04/10/93 */
  3. /*                                                                      */
  4. /* Enhanced string class for Turbo C++/Borland C++.                     */
  5. /* Copyright 1991-1993 by Carl W. Moreland                              */
  6. /*                                                                      */
  7. /* filestr.h                                                            */
  8. /* -------------------------------------------------------------------- */
  9. /* Class for decomposing a filespec into its drive, path, name, and     */
  10. /* extension.                                                           */
  11. /* -------------------------------------------------------------------- */
  12.  
  13. #ifndef _FILESTR_H
  14. #define _FILESTR_H
  15.  
  16. #ifdef BCCL
  17. #include "strng.h"
  18. #else
  19. #include "str.h"
  20. #endif
  21.  
  22. class FileString
  23. {
  24. public:
  25.   String Drive;            // Ex: "C:"
  26.   String Path;            // Ex: "\BC\CLASSLIB\INCLUDE"
  27.   String FileName;        // Ex: "STRNG.H"
  28.   String Name;            // Ex: "STRNG"
  29.   String Ext;            // Ex: "H"
  30.  
  31.   FileString(void) {};
  32.   FileString(const char*);
  33.   FileString(const String&);
  34.   void operator=(const char*);
  35.   void operator=(const String&);
  36.  
  37. private:
  38.   void Process(const String&);
  39. };
  40.  
  41. #endif
  42.